import axios from 'axios'

// 
const baseURL="https://www.liulongbin.top:8888"

export const server=axios.create({
    baseURL:baseURL,
    headers:{
        'Content-Type': 'application/json',
        "Accept":"*/*",
        "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2NjU0NzQyNzIsImV4cCI6MTY2NTU2MDY3Mn0.vfdQE02Ng-IRHECO-wjeznNfKpWyLjhXyni3SI-3tMc"
    }
    
})
// 发送请求
server.interceptors.request.use(
    function(config){
        console.log(config);
        return config
    },
    function(error){
        console.log(error);
        return
    }
)
// 响应拦截
server.interceptors.response.use(
    function(config){
        console.log(config);
        return config
    },
    function(error){
        console.log(error);
        return error
    }
)
